package com.iov.failurelog.utils;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2023/11/18 17:04
 */

@Component
public  class RabbitmqUtils {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public static RabbitTemplate rabbit;

    @PostConstruct
    public void getRabbitTemplate(){
        rabbit=this.rabbitTemplate;
    }

}


